<?php 
    class SidebarWidget extends CWidget
    {
        public function run()
        {
            $this->getsidebar();
        }
        public function getsidebar()
        {
            $this->render('sidebar');
        }
    }
?>